import request from '@/utils/request'

const api = {
  getOperPageUrl: '/base_operation/get_oper_page',
  addOperUrl: '/base_operation/add_oper',
}

export async function addOperApi(params: Map<string, any>) {
  const res = await request({
    url: api.addOperUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function getOperPageApi(params: Map<string, any>) {
  const res = await request({
    url: api.getOperPageUrl,
    method: 'post',
    data: params,
  })
  return res
}
